// src/app/layout.tsx
import './globals.css';
import { Inter } from 'next/font/google';
import type { Metadata } from 'next';

const inter = Inter({ subsets: ['latin'] });

export const metadata: Metadata = {
  metadataBase: new URL('https://your-domain.com'), // Replace with your domain
  title: {
    default: 'QCDIY Help And Support Center',
    template: '%s | QCDIY Help And Support Center',
  },
  description: 'A modern blog platform powered by Next.js and GitHub Markdown',
  openGraph: {
    title: 'QCDIY Help And Support Center',
    description: 'A modern blog platform powered by Next.js and GitHub Markdown',
    url: '/',
    siteName: 'QCDIY Help And Support Center',
    images: [
      {
        url: '/images/og-image.jpg', // Add your own OG image
        width: 1200,
        height: 630,
        alt: 'QCDIY Help And Support Center',
      },
    ],
    locale: 'en_US',
    type: 'website',
  },
  twitter: {
    card: 'summary_large_image',
    title: 'QCDIY Help And Support Center',
    description: 'A modern blog platform powered by Next.js and GitHub Markdown',
    images: ['/images/twitter-image.jpg'], // Add your own Twitter card image
  },
};

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="en" className="scroll-smooth">
      <body style={{ backgroundColor: '#fff' }} className={`${inter.className} `}>
        {children}
      </body>
    </html>
  );
}

